package com.dsbj.it.DingTalkBotStarter.common.result;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
public class ResPage<T> {

    @Schema(description ="总数")
    private long total;

    @Schema(description = "数据列表")
    private List<T> content;

    @Schema(description = "表头数据")
    private List<String> header;

    public ResPage(long total, List<T> content, List<String> header) {
        this.total = total;
        this.content = content;
        this.header = header;
    }
}
